package com.buct.coder.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 学生比赛记录
 * </p>
 *
 * @author xinzi
 * @since 2022-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("student_contest_log")
@Builder
public class StudentContestLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("stu_id")
    private Long stuId;

    /**
     * 比赛id
     */
    @TableField("contest_id")
    private Long contestId;

    @TableField("contest_rank")
    private Long contestRank;

    @TableField("performance")
    private Long performance;

    @TableField("new_rating")
    private Long newRating;

    /**
     * 排名变化
     */
    @TableField("diff")
    private String diff;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;


}
